Updating the WS-AppServer Package with Database Details |
|
Before you begin this task:
Create a Database Metadata or Reload the existing Database Metadata before updating the package, to ensure that you get the latest database sources into the package.
To make the WS-AppServer package functional, you need to load it with database sources so that you can generate Java code and Web service operations on them.
- Double-click the <WS-AppServer Package> from either of the following locations:
- Workspace Documents (My Recent Documents) window.
- Workspace Documents (Explorer) > <solution> > <project> . The WS-AppServer Package window appears, displaying the data models and their corresponding attributes, methods, and relations.
- Workspace Documents (My Recent Documents) window.
- On the WS-AppServer Package toolbar, click . The Update Package from Database Metadata dialog box appears.
- Select Table or Views or both as required, to display the database contents for selection. The DB Objects are listed below in rows.
- Click the individual check boxes to select specific Table/View or click the DB Object check box to select all.
Tip: Type the name of the Table/View in the Filter field to narrow the search and display matching results, and enable quicker selection.
- Click Update.
Note: If you update the WS-AppServer package with the same database tables/views that currently exist in the package, all the existing models are displayed with an option to Overwrite the tables. If you have not selected any existing table for the update, the package is directly updated with the newly selected tables, without listing any existing model or without showing the option to overwrite. Depending upon the requirement, perform the necessary action.
The WS-AppServer Package is loaded with the selected database tables (models) and displays the details of each table as Attributes, Methods, and Relations.
For each model, you will see a Mapped Name (usually the name that corresponds to the actual database table name) and a Class Namespace (the name of the Package Namespace). If you do not want to retain the default names, you may replace these with names of your preference.